package com.guxing.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

import java.math.BigDecimal;

@Data
@Configuration
@RefreshScope
@ConfigurationProperties(prefix = "user3")
public class UserCustom3 {

    private Integer id;

    private String name;

    private UserOrder order;

    @Data
    public static class UserOrder {

        private Integer id;

        private BigDecimal amount;

        private Integer quantity;

        private String name;
    }
}
